<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">

<title> 提交记录 9647 - Judge Duck Online </title>

<link rel="icon" type="image/png" href="/images/judgeduck-logo-small.png" />

<script src="/libs/js/jquery-3.2.1.min.js"></script>

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="/libs/css/bootstrap.min.css" />

<!-- Latest compiled and minified JavaScript -->
<script src="/libs/js/bootstrap.min.js"></script>

<link rel="stylesheet" type="text/css" href="/css/main.css" />
<link rel="stylesheet" href="/css/non-responsive.css" type="text/css" />

<script src="/js/md5.js"></script>
<script src="/js/judgeduck.js"></script>

<script type="text/x-mathjax-config">
	MathJax.Hub.Config({
		showProcessingMessages: false,
		tex2jax: {
			inlineMath: [["$", "$"], ["\\\\(", "\\\\)"]],
			processEscapes:true
		},
		menuSettings: {
			zoom: "Hover"
		}
	});
</script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.1/MathJax.js?config=TeX-AMS_HTML"></script>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
<script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>

</head>

<body onload="">

<!-- Fixed navbar -->
<nav class="navbar navbar-default" role="navigation" style="background-color: #eeeeee">
	<div class="container">
		<div class="navbar-header">
			<div class="navbar-brand">
				<a href="/">
					<img src="/images/judgeduck-logo.png" width="40px" height="40px" style="margin:-10px" />
				</a>
			</div>
			<font class="navbar-brand">
				Judge Duck Online
			</font>
		</div>
		<div class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li class="nav-item">
					<a class="nav-link" href="/index/index.html"> 首页 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/problems/index.html"> 题目列表 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/submissions/index.html"> 提交记录 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/blogs/index.html"> 博客 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/faq/index.html"> FAQ </a>
				</li>
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li class="nav-item">
					<a class="nav-link" href="/user/login/index.html"> 登录 </a>
				</li>
				<li class="nav-item">
					<a href='/user/profile/webmaster/index.html'> webmaster </a>
<a href="http://www.iis7.com" style="display:inline-block;background-color:;color:#fff;padding:2px 5px;font-family:arial;font-size:12px;font-weight:bold;" class="83b02be42a5d41da8105cf0e3587f6b1" target="_blank">iis7站长之家</a>
				</li>
			</ul>
		</div><!--/.nav-collapse -->
	</div>
</nav>




<div id="main_div" class="container" style="padding-left: 25px; padding-right: 25px">
	<h2> 提交记录 9647 </h2>
	<hr />
	
	<div class="row">
		<div class="col-xs-12">
			<table class="table table-bordered">
				<tr>
					<th class="col-xs-2"> 用户 </th>
					<th class="col-xs-3"> 题目 </th>
					<th class="col-xs-2"> 状态 </th>
					<th class="col-xs-1"> 得分 </th>
					<th class="col-xs-1"> 用时 </th>
					<th class="col-xs-1"> 内存 </th>
					<th class="col-xs-1"> 语言 </th>
					<th class="col-xs-1"> 代码长度 </th>
				</tr>
				<tr>
					<td style='font-size:13px'> <a href='/user/profile/webmaster/index.html'> webmaster </a> </td>
<td> <a href='/problem/1001/index.html'> 1001. 测测你的排序 </a> </td>
<td> Compile Error </td>
<td> 0 </td>
<td style='font-size:13px'> 0 ns </td>
<td style='font-size:13px'> 0 KB </td>
<td style='font-size:13px'> C++ </td>
<td style='font-size:13px'> 961 B </td>
				</tr>
			</table>
			<table class="table table-bordered">
				<tr>
					<th class="col-xs-6"> 提交时间 </th>
					<th class="col-xs-6"> 评测时间 </th>
				</tr>
				<tr>
					<td style='font-size:13px'> 2019-06-25 07:59:46 </td>
<td style='font-size:13px'> 2019-06-25 07:59:46 </td>
				</tr>
			</table>
			<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.12.0/build/styles/tomorrow.min.css">
			<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.12.0/build/highlight.min.js"></script>
			<script>hljs.initHighlightingOnLoad();</script>
			<div class="row">
				<label for="code"> 代码 </label>
				<pre style="background-color:white"><code class="cpp">#include &lt;algorithm&gt;

inline void radix_sort(unsigned *&amp;data, unsigned const &amp;len, unsigned const &amp;base)
{
    const unsigned &amp;chunk_num = ceil_div(32, base), &amp;chunk_size = 1u &lt;&lt; base;
    unsigned i, j, k, **cnt = new unsigned* [chunk_num], *temp = new unsigned[len];
    for (i = 0; i &lt; chunk_num; ++i)
        cnt[i] = new unsigned[chunk_size]();
    for (i = 0; i &lt; len; ++i)
        for (j = 0, k = data[i]; j &lt; chunk_num; ++j, k &gt;&gt;= base)
            ++cnt[j][k &amp; (chunk_size - 1)];
    for (i = 0; i &lt; chunk_num; ++i)
    {
        for (j = 1; j &lt; chunk_size; ++j)
            cnt[i][j] += cnt[i][j - 1];
        for (j = 1; j &lt;= len; ++j)
        {
            k = len - j;
            temp[--cnt[i][(data[k] &gt;&gt; (base * i)) &amp; (chunk_size - 1)]] = data[k];
        }
        swap(data, temp);
    }
    for (i = 0; i &lt; chunk_num; ++i)
        delete[]cnt[i];
    delete[]cnt;
    delete[]temp;
}

void sort(unsigned *a, int n) {
	radix_sort(a, n, 16);
}
</code></pre>
				<br />
				
				<label for="result"> 评测结果 </label><div class="row"><div class="col-xs-12"><div class="alert alert-danger"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Compilation</b></td><td class="col-xs-2" style="vertical-align:middle">N/A</td><td class="col-xs-2" style="vertical-align:middle">N/A</td><td class="col-xs-2" style="vertical-align:middle">Compile Error</td><td class="col-xs-2" style="vertical-align:middle">Score: N/A</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_1" aria-expanded="false" aria-controls="detail_1">显示更多</a></td></tr></table></div><div class="collapse" id="detail_1"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>Compiling...
Contestant compile error
jp_data/tasks/247dd7f096dc11e9899e00163e04388b/contestant.cpp: In function ‘void radix_sort(unsigned int*&amp;, const unsigned int&amp;, const unsigned int&amp;)’:
jp_data/tasks/247dd7f096dc11e9899e00163e04388b/contestant.cpp:5:50: error: ‘ceil_div’ was not declared in this scope
     const unsigned &amp;chunk_num = ceil_div(32, base), &amp;chunk_size = 1u &lt;&lt; base;
                                                  ^
jp_data/tasks/247dd7f096dc11e9899e00163e04388b/contestant.cpp:8:31: error: ‘chunk_size’ was not declared in this scope
         cnt[i] = new unsigned[chunk_size]();
                               ^
jp_data/tasks/247dd7f096dc11e9899e00163e04388b/contestant.cpp:11:27: error: ‘chunk_size’ was not declared in this scope
             ++cnt[j][k &amp; (chunk_size - 1)];
                           ^
jp_data/tasks/247dd7f096dc11e9899e00163e04388b/contestant.cpp:14:25: error: ‘chunk_size’ was not declared in this scope
         for (j = 1; j &lt; chunk_size; ++j)
                         ^
jp_data/tasks/247dd7f096dc11e9899e00163e04388b/contestant.cpp:19:54: error: ‘chunk_size’ was not declared in this scope
             temp[--cnt[i][(data[k] &gt;&gt; (base * i)) &amp; (chunk_size - 1)]] = data[k];
                                                      ^
jp_data/tasks/247dd7f096dc11e9899e00163e04388b/contestant.cpp:21:24: error: ‘swap’ was not declared in this scope
         swap(data, temp);
                        ^
jp_data/tasks/247dd7f096dc11e9899e00163e04388b/contestant.cpp:21:24: note: suggested alternative:
In file included from /usr/include/c++/5/bits/stl_pair.h:59:0,
                 from /usr/include/c++/5/utility:70,
                 from /usr/include/c++/5/algorithm:60,
                 from jp_data/tasks/247dd7f096dc11e9899e00163e04388b/contestant.cpp:1:
/usr/include/c++/5/bits/move.h:195:5: note:   ‘std::swap’
     swap(_Tp (&amp;__a)[_Nm], _Tp (&amp;__b)[_Nm])
     ^
</textarea></div></div></div></div>
			</div>
		</div>
	</div>

	<hr />
	
	<div class="row">
		<p style="text-align: center; color: #888">
			Judge Duck Online | 评测鸭在线 <br />
			Server Time: 2019-08-02 17:17:28 | Loaded in 0 ms | <a href="/status/index.html"> Server Status </a> <br />
			个人娱乐项目，仅供学习交流使用
		</p>
	</div>
</div>

</body>

</html>
